
<link href="<?php echo base_url(); ?>public/admin/css/banner.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/resources/demos/style.css">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<div class="page-content">
    <div class="page-header position-relative">
        <h1>
            Tạo cấm thành viên
        </h1>
    </div>
    <div id="main-content-ego">
        <form method="post" action="">
            <div id="post">
                <div class="account-info">
                    <hr>
                    <div class="account-info-content">
                        <div class="account-info-content-field">
                            <label for="email" class="lb_field">Tài khoản: </php> <span class="red-text"">* </span></label>
                            <div class="input-field">
                                <input type="text" id="user_banner" name="user_banner" value="<?php  echo $load_user;  ?>">
                            </div>
                        </div>
                        <div class="account-info-content-field">
                            <label for="email" class="lb_field">Nhóm:</label>

                            <div class="input-field">
                                <select name="group_banner">
                                    <?php
                                    foreach ($listGroup as $khoa=>$value){
                                            echo "<option value='".$value['GroupId']."'>$value[GroupName]</option>";
                                            if($value['GroupId'] == 3)
                                            {
                                                echo "<option value='".$value['GroupId']." ' selected='selected'>$value[GroupName]</option>";
                                            }
                                        }
                                    ?>
                                </select>
                            </div>
                        </div>
                        <div class="account-info-content-field">
                            <label for="email" class="lb_field">Thời gian:</label>
                            <div class="input-field">
                                <select name="time_banner">
                                    <option value="3">- 3 Ngày -</option>
                                    <option value="7">- 7 Ngày -</option>
                                    <option value="30">- 1 Tháng -</option>
                                    <option value="9999">- Vĩnh Viễn -</option>
                                </select>
                            </div>
                        </div>
                        <div class="account-info-content-field">
                            <label for="email" class="lb_field">Lý do:</label>
                            <div class="input-field">
                                <input type="text"  name="why_banner" value="<?php  echo $load_whybanner;  ?>">
                            </div>
                        </div>
                        <div class="account-info-content-field">
                            <input type="submit" class="btn-register-user-info" name="btn-register-user-info" value="<?php  echo $name_button;  ?>" onclick="myFunction()">
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">
    /* Auto Complete to Label Email */
    $(document).ready(function()
    {
        var availableTags = new Array();
        <?php
        $i = 0;
        foreach ($listUser as $values) {
            echo "availableTags[".$i."] = '".$values."';";
            $i ++;
        }
        ?>

        $("#user_banner" ).autocomplete({
            source: availableTags
        });
    });

</script>
<?php if(isset($alert))    echo $alert; ?><!--- Show Message Error -- >